home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- #################### Check self arguments.
- if test $# -lt 1
- then
- echo 'No, Too few arguments.' > /dev/console
- exit 0
- fi
-
- #################### If installer command doesn't exist, Open with Installer.app.
- if test ! -e "/usr/sbin/installer"
- then
- echo 'tell application "Installer" to activate' | /usr/bin/osascript &
- /Applications/Utilities/Installer.app/Contents/MacOS/Installer "${1}"
- echo "" > /dev/null
- exit 0
- fi
-
- #################### Install with installer command.
- /usr/sbin/installer -verboseR -pkg "${1}" -target /
- #/usr/sbin/installer -verboseR -pkg "${1}" -target / > /dev/stdout
-
- exit 0
-